/**
   TODO
   date:2010-3-19
   author:hyyy
   
   
 */ 
package com.lovejes.jesacl.service.impl;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.lovejes.ex.DbException;
import com.lovejes.jesacl.domain.UserInfo;
import com.lovejes.service.impl.BaseServiceImpl;

/**
 TODO
 date:2010-3-19
 author:hyyy
   @preserve all
 */
public class AclService extends BaseServiceImpl{
	Log logger = LogFactory.getLog(AclService.class);

	static class SignletonHolder {
		static AclService instance = new AclService();
	}

	public static AclService getInstance() {
		return SignletonHolder.instance;
	}
	
	public void upUsOnline(UserInfo us){
		try {
			update("Acluser t", "t.Ison='"+us.getIson()+"'", "t.Id='"+us.getUsid()+"'");
		} catch (DbException e) {
			logger.error(e);
			logger.error(e.getCause());
		}
	}
	
}
